<extend name="Base/common" />
<block name="Content">

<div class="page-group">
	<div class="page page-current">
		<header class="bar bar-nav">
			<a class="icon icon-left pull-left"></a>
			<h1 class="title title-fwb">提示信息</h1>
		</header>
		<div class="content">
			<div class="reg-ok">
				<p class="txt">
					<?php echo($error); ?>
				</p>
			</div>
			<div class="reg-id">
				<p>
					<b id="wait"><?php echo($waitSecond); ?></b>
					<span>秒后页面将自动跳转</span>
				</p>
			</div>
		</div>
		<input  type="hidden" value="<?php echo($jumpUrl); ?>" id="hrefvalue">
	</div>
</div>

</block>

<block name="script"> 
	<script type="text/javascript">
		$(function(){
		    var wait = document.getElementById('wait'), href = document.getElementById('hrefvalue').value;
		    var interval = setInterval(function(){
		        var time = --wait.innerHTML;
		        if (time <= 0) {
		            location.href = href;
					window.close();
		            clearInterval(interval);
		        };
		            }, 1000);
		    
		});
	</script> 
</block>
